const baseUrl = 'https://wjy.daokeyun.com/api/';

const urls = {
  "login" : "wechat/mini/login", //登录
  // "profile" : "v1/profile", //退出
  // "register" : "v1/register", //注册
  // "refresh" : "v1/refresh", // 刷新token
  'defaultscene' :'v1/defaultscene',
}

function getUrl(name=null) {
  if(name) {
    return baseUrl+urls[name];
  }
  return baseUrl;
}

export default getUrl;